<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SKaP: CI_URI Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SKaP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_c_i___u_r_i.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">CI_URI Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a095c5d389db211932136b53f25f39685"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a095c5d389db211932136b53f25f39685">__construct</a> ()</td></tr>
<tr class="separator:a095c5d389db211932136b53f25f39685"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfc05ba05789de235466da80e2a34883"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#adfc05ba05789de235466da80e2a34883">_fetch_uri_string</a> ()</td></tr>
<tr class="separator:adfc05ba05789de235466da80e2a34883"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81a4c4d50fbac24b9ae091f9cfcaade3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a81a4c4d50fbac24b9ae091f9cfcaade3">_set_uri_string</a> ($str)</td></tr>
<tr class="separator:a81a4c4d50fbac24b9ae091f9cfcaade3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1f311bdebd0d37a5f255562a5874dc7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ac1f311bdebd0d37a5f255562a5874dc7">_filter_uri</a> ($str)</td></tr>
<tr class="separator:ac1f311bdebd0d37a5f255562a5874dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f02a9ac7030eaf1140aacb4863af960"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a5f02a9ac7030eaf1140aacb4863af960">_remove_url_suffix</a> ()</td></tr>
<tr class="separator:a5f02a9ac7030eaf1140aacb4863af960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26cd2b70f2ca8ddfe42a74e7c9c71068"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a26cd2b70f2ca8ddfe42a74e7c9c71068">_explode_segments</a> ()</td></tr>
<tr class="separator:a26cd2b70f2ca8ddfe42a74e7c9c71068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12533dc88e2061577867a91fa4f25c34"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a12533dc88e2061577867a91fa4f25c34">_reindex_segments</a> ()</td></tr>
<tr class="separator:a12533dc88e2061577867a91fa4f25c34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f0bc9309bced907b54cf2178b359b9c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment</a> ($n, $no_result=FALSE)</td></tr>
<tr class="separator:a6f0bc9309bced907b54cf2178b359b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe281d36faa29580e32aed250c88af80"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#afe281d36faa29580e32aed250c88af80">rsegment</a> ($n, $no_result=FALSE)</td></tr>
<tr class="separator:afe281d36faa29580e32aed250c88af80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67cca74de71898ee88c167a265cff140"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a67cca74de71898ee88c167a265cff140">uri_to_assoc</a> ($n=3, $default=array())</td></tr>
<tr class="separator:a67cca74de71898ee88c167a265cff140"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f375a2026349f1fce7915966eba6d5b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a3f375a2026349f1fce7915966eba6d5b">ruri_to_assoc</a> ($n=3, $default=array())</td></tr>
<tr class="separator:a3f375a2026349f1fce7915966eba6d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f7962a57049a3767fdfa4c1a004dc98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a8f7962a57049a3767fdfa4c1a004dc98">_uri_to_assoc</a> ($n=3, $default=array(), $which= '<a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment</a>')</td></tr>
<tr class="separator:a8f7962a57049a3767fdfa4c1a004dc98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c17149885c92fef1ed7f191f14a3f4d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a5c17149885c92fef1ed7f191f14a3f4d">assoc_to_uri</a> ($array)</td></tr>
<tr class="separator:a5c17149885c92fef1ed7f191f14a3f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac16fc32f9085c8ccf4d8eeae78765ae8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ac16fc32f9085c8ccf4d8eeae78765ae8">slash_segment</a> ($n, $where= 'trailing')</td></tr>
<tr class="separator:ac16fc32f9085c8ccf4d8eeae78765ae8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a644ee9ec883346bab8ba8819ee3ebf98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a644ee9ec883346bab8ba8819ee3ebf98">slash_rsegment</a> ($n, $where= 'trailing')</td></tr>
<tr class="separator:a644ee9ec883346bab8ba8819ee3ebf98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb479c7fb188fad2720246af4827ea9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#aeb479c7fb188fad2720246af4827ea9a">_slash_segment</a> ($n, $where= 'trailing', $which= '<a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment</a>')</td></tr>
<tr class="separator:aeb479c7fb188fad2720246af4827ea9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0db37475b7a41e156f2e9375a2b7cc6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ac0db37475b7a41e156f2e9375a2b7cc6">segment_array</a> ()</td></tr>
<tr class="separator:ac0db37475b7a41e156f2e9375a2b7cc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaac2da0a6641a4a874a178442eb99624"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#aaac2da0a6641a4a874a178442eb99624">rsegment_array</a> ()</td></tr>
<tr class="separator:aaac2da0a6641a4a874a178442eb99624"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5805c40e1c916e7b00b49f131765ac1c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a5805c40e1c916e7b00b49f131765ac1c">total_segments</a> ()</td></tr>
<tr class="separator:a5805c40e1c916e7b00b49f131765ac1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aead39329dc096b94eef0955fdcdd635f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#aead39329dc096b94eef0955fdcdd635f">total_rsegments</a> ()</td></tr>
<tr class="separator:aead39329dc096b94eef0955fdcdd635f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7a3f945c14cc37f89b6d9d1c7a037a4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ac7a3f945c14cc37f89b6d9d1c7a037a4">uri_string</a> ()</td></tr>
<tr class="separator:ac7a3f945c14cc37f89b6d9d1c7a037a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53a97a8b68f500980b84e3b060400221"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a53a97a8b68f500980b84e3b060400221">ruri_string</a> ()</td></tr>
<tr class="separator:a53a97a8b68f500980b84e3b060400221"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ae15942155aae4760439f552ad1fc3c34"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ae15942155aae4760439f552ad1fc3c34">$keyval</a> = array()</td></tr>
<tr class="separator:ae15942155aae4760439f552ad1fc3c34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab908b3e655463a05e8a646c965ca4e53"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#ab908b3e655463a05e8a646c965ca4e53">$uri_string</a></td></tr>
<tr class="separator:ab908b3e655463a05e8a646c965ca4e53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d7f597e2b6cf2aaef663822d1b96a82"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#a8d7f597e2b6cf2aaef663822d1b96a82">$segments</a> = array()</td></tr>
<tr class="separator:a8d7f597e2b6cf2aaef663822d1b96a82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf60189292b5fda02cdf36e5d7417a33"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_i___u_r_i.html#abf60189292b5fda02cdf36e5d7417a33">$rsegments</a> = array()</td></tr>
<tr class="separator:abf60189292b5fda02cdf36e5d7417a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a095c5d389db211932136b53f25f39685"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor</p>
<p>Simply globalizes the $RTR object. The front loads the Router class early on so it's not available normally as other classes are.</p>
<p>public </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a26cd2b70f2ca8ddfe42a74e7c9c71068"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_explode_segments </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Explode the URI Segments. The individual segments will be stored in the $this-&gt;segments array.</p>
<p>private </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="adfc05ba05789de235466da80e2a34883"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_fetch_uri_string </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the URI String</p>
<p>private </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="ac1f311bdebd0d37a5f255562a5874dc7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_filter_uri </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Filter segments for malicious characters</p>
<p>private </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a12533dc88e2061577867a91fa4f25c34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_reindex_segments </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Re-index Segments</p>
<p>This function re-indexes the $this-&gt;segment array so that it starts at 1 rather than 0. Doing so makes it simpler to use functions like $this-&gt;uri-&gt;segment(n) since there is a 1:1 relationship between the segment array and the actual segments.</p>
<p>private </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a5f02a9ac7030eaf1140aacb4863af960"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_remove_url_suffix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Remove the suffix from the URL if needed</p>
<p>private </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a81a4c4d50fbac24b9ae091f9cfcaade3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_set_uri_string </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the URI String</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="aeb479c7fb188fad2720246af4827ea9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_slash_segment </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$where</em> = <code>'trailing'</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$which</em> = <code>'<a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment</a>'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch a URI Segment and add a trailing slash - helper function</p>
<p>private </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a8f7962a57049a3767fdfa4c1a004dc98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_uri_to_assoc </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$which</em> = <code>'<a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment</a>'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a key value pair from the URI string or Re-routed URI string</p>
<p>private </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td>the starting segment number </td></tr>
    <tr><td class="paramname">array</td><td>an array of default values </td></tr>
    <tr><td class="paramname">string</td><td>which array we should use </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a5c17149885c92fef1ed7f191f14a3f4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">assoc_to_uri </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$array</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a URI string from an associative array</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">array</td><td>an associative array of key/values </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="afe281d36faa29580e32aed250c88af80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">rsegment </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$no_result</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch a URI "routed" Segment</p>
<p>This function returns the re-routed URI segment (assuming routing rules are used) based on the number provided. If there is no routing this function returns the same result as $this-&gt;<a class="el" href="class_c_i___u_r_i.html#a6f0bc9309bced907b54cf2178b359b9c">segment()</a></p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td></td></tr>
    <tr><td class="paramname">bool</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="aaac2da0a6641a4a874a178442eb99624"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">rsegment_array </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Routed Segment Array</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a53a97a8b68f500980b84e3b060400221"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ruri_string </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch the entire Re-routed URI string</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a3f375a2026349f1fce7915966eba6d5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ruri_to_assoc </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Identical to above only it uses the re-routed segment array</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td>the starting segment number </td></tr>
    <tr><td class="paramname">array</td><td>an array of default values </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a6f0bc9309bced907b54cf2178b359b9c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">segment </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$no_result</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch a URI Segment</p>
<p>This function returns the URI segment based on the number provided.</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td></td></tr>
    <tr><td class="paramname">bool</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="ac0db37475b7a41e156f2e9375a2b7cc6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">segment_array </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Segment Array</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a644ee9ec883346bab8ba8819ee3ebf98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">slash_rsegment </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$where</em> = <code>'trailing'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch a URI Segment and add a trailing slash</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="ac16fc32f9085c8ccf4d8eeae78765ae8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">slash_segment </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$where</em> = <code>'trailing'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch a URI Segment and add a trailing slash</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td></td></tr>
    <tr><td class="paramname">string</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="aead39329dc096b94eef0955fdcdd635f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">total_rsegments </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Total number of routed segments</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>integer </dd></dl>

</div>
</div>
<a class="anchor" id="a5805c40e1c916e7b00b49f131765ac1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">total_segments </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Total number of segments</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>integer </dd></dl>

</div>
</div>
<a class="anchor" id="ac7a3f945c14cc37f89b6d9d1c7a037a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uri_string </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Fetch the entire URI string</p>
<p>public </p>
<dl class="section return"><dt>Returns</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a67cca74de71898ee88c167a265cff140"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uri_to_assoc </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$n</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a key value pair from the URI string</p>
<p>This function generates and associative array of URI data starting at the supplied segment. For example, if this is your URI:</p>
<p>example.com/user/search/name/joe/location/UK/gender/male</p>
<p>You can use this function to generate an array with this prototype:</p>
<p>array ( name =&gt; joe location =&gt; UK gender =&gt; male )</p>
<p>public </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">integer</td><td>the starting segment number </td></tr>
    <tr><td class="paramname">array</td><td>an array of default values </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>array </dd></dl>

</div>
</div>
<h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="ae15942155aae4760439f552ad1fc3c34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$keyval = array()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="abf60189292b5fda02cdf36e5d7417a33"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$rsegments = array()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8d7f597e2b6cf2aaef663822d1b96a82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$segments = array()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab908b3e655463a05e8a646c965ca4e53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$<a class="el" href="class_c_i___u_r_i.html#ac7a3f945c14cc37f89b6d9d1c7a037a4">uri_string</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/xampp/htdocs/skap/system/core/<a class="el" href="_u_r_i_8php.html">URI.php</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_c_i___u_r_i.html">CI_URI</a></li>
    <li class="footer">Generated on Thu Nov 29 2012 09:50:46 for SKaP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
